package com.ruoyi.nongjt.domain.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.util.Date;

@Data
public class NjtUserRegister {

    @Excel(name = "用户id")
    private Long id;

    @Excel(name = "主体名称")
    private String companyName;

    @Excel(name = "联系方式")
    private String mobilePhone;

    private String password;

    @Excel(name = "详细地址")
    private String address;

    @Excel(name = "所属单位ID")
    private Long organizationId; // 原 affiliiatedUnitId → 改为 organization_id

    @Excel(name = "绑定打印机ID")
    private Long printerId; // 新增字段

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date registerTime;

    @Excel(name = "是否会员", dictType = "njt_member_flag")
    private Integer memberFlag;

    @Excel(name = "信息是否完善", dictType = "njt_perfect_flag")
    private Integer perfectFlag;

    @Excel(name = "用户状态", readConverterExp = "0=正常,1=冻结")
    private Integer userStatus;

    /**
     * 删除标记：0-未删除，1-已删除
     */
    private Integer isDeleted;

    private Integer delFlag;

    private Date createTime;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private String updateBy;
    private String captcha;  // 图形验证码
    private String uuid;     // 验证码唯一标识
}

